home *** CD-ROM | disk | FTP | other *** search
/ Art Fundamentals - Core Concepts in Art / Art Fundamentals: Core Concepts in Art.iso / pc / shape_2.dxr / 00001.ls next >
Encoding:
Text File  |  2001-07-16  |  11.1 KB  |  370 lines

  1. on showit startnum, endnum
  2.   repeat with X = startnum to endnum
  3.     sprite(X).visible = 1
  4.   end repeat
  5. end
  6.  
  7. on hideit startnum, endnum
  8.   repeat with X = startnum to endnum
  9.     sprite(X).visible = 0
  10.   end repeat
  11. end
  12.  
  13. on rollit startnum, endnum
  14.   repeat with X = startnum to endnum
  15.     set the cursor of sprite X to 280
  16.   end repeat
  17. end
  18.  
  19. on unrollit startnum, endnum
  20.   repeat with X = startnum to endnum
  21.     set the cursor of sprite X to -1
  22.   end repeat
  23. end
  24.  
  25. on exercisehomebackroll
  26.   if rollover(21) then
  27.     sprite(14).visible = 1
  28.     sprite(18).visible = 1
  29.     hideit(15, 16)
  30.     hideit(19, 20)
  31.   else
  32.     if rollover(22) then
  33.       sprite(15).visible = 1
  34.       sprite(19).visible = 1
  35.       sprite(14).visible = 0
  36.       sprite(18).visible = 0
  37.       sprite(16).visible = 0
  38.       sprite(20).visible = 0
  39.     else
  40.       if rollover(23) then
  41.         sprite(16).visible = 1
  42.         sprite(20).visible = 1
  43.         hideit(14, 15)
  44.         hideit(18, 19)
  45.       else
  46.         hideit(14, 16)
  47.         hideit(18, 20)
  48.       end if
  49.     end if
  50.   end if
  51.   if rollover(8) then
  52.     sprite(9).visible = 1
  53.   else
  54.     sprite(9).visible = 0
  55.   end if
  56.   if rollover(5) then
  57.     sprite(10).visible = 1
  58.     sprite(11).visible = 0
  59.   else
  60.     sprite(10).visible = 0
  61.     sprite(11).visible = 1
  62.   end if
  63. end
  64.  
  65. on checkanswer img, level, answer
  66.   if img = 1 then
  67.     nothing()
  68.   else
  69.     if img = 2 then
  70.       if level = 1 then
  71.         if answer = 1 then
  72.           set the memberNum of sprite 65 to member("correct")
  73.           changelevel()
  74.           updateStage()
  75.         else
  76.           if answer = 2 then
  77.             set the memberNum of sprite 66 to member("TryAgain")
  78.             updateStage()
  79.           else
  80.             if answer = 3 then
  81.               set the memberNum of sprite 67 to member("TryAgain")
  82.               updateStage()
  83.             else
  84.               if answer = 4 then
  85.                 set the memberNum of sprite 68 to member("TryAgain")
  86.                 updateStage()
  87.               end if
  88.             end if
  89.           end if
  90.         end if
  91.       else
  92.         if level = 2 then
  93.           if answer = 1 then
  94.             set the memberNum of sprite 65 to member("correct")
  95.             changelevel()
  96.             updateStage()
  97.           else
  98.             if answer = 2 then
  99.               set the memberNum of sprite 66 to member("TryAgain")
  100.               updateStage()
  101.             else
  102.               if answer = 3 then
  103.                 set the memberNum of sprite 67 to member("TryAgain")
  104.                 updateStage()
  105.               else
  106.                 if answer = 4 then
  107.                   set the memberNum of sprite 68 to member("TryAgain")
  108.                   updateStage()
  109.                 end if
  110.               end if
  111.             end if
  112.           end if
  113.         else
  114.           if level = 3 then
  115.             if answer = 1 then
  116.               set the memberNum of sprite 65 to member("correct")
  117.               changelevel()
  118.               updateStage()
  119.             else
  120.               if answer = 2 then
  121.                 set the memberNum of sprite 66 to member("TryAgain")
  122.                 updateStage()
  123.               else
  124.                 if answer = 3 then
  125.                   set the memberNum of sprite 67 to member("TryAgain")
  126.                   updateStage()
  127.                 else
  128.                   if answer = 4 then
  129.                     set the memberNum of sprite 68 to member("TryAgain")
  130.                     updateStage()
  131.                   end if
  132.                 end if
  133.               end if
  134.             end if
  135.           else
  136.             if level = 4 then
  137.               if answer = 1 then
  138.                 set the memberNum of sprite 65 to member("correct")
  139.                 changelevel()
  140.                 updateStage()
  141.               else
  142.                 if answer = 2 then
  143.                   set the memberNum of sprite 66 to member("TryAgain")
  144.                   updateStage()
  145.                 else
  146.                   if answer = 3 then
  147.                     set the memberNum of sprite 67 to member("TryAgain")
  148.                     updateStage()
  149.                   else
  150.                     if answer = 4 then
  151.                       set the memberNum of sprite 68 to member("TryAgain")
  152.                       updateStage()
  153.                     end if
  154.                   end if
  155.                 end if
  156.               end if
  157.             end if
  158.           end if
  159.         end if
  160.       end if
  161.     else
  162.       if img = 3 then
  163.         if level = 1 then
  164.           if answer = 1 then
  165.             set the memberNum of sprite 65 to member("correct")
  166.             changelevel()
  167.             updateStage()
  168.           else
  169.             if answer = 2 then
  170.               set the memberNum of sprite 66 to member("TryAgain")
  171.               updateStage()
  172.             else
  173.               if answer = 3 then
  174.                 set the memberNum of sprite 67 to member("TryAgain")
  175.                 updateStage()
  176.               else
  177.                 if answer = 4 then
  178.                   set the memberNum of sprite 68 to member("TryAgain")
  179.                   updateStage()
  180.                 end if
  181.               end if
  182.             end if
  183.           end if
  184.         else
  185.           if level = 2 then
  186.             if answer = 1 then
  187.               set the memberNum of sprite 65 to member("correct")
  188.               changelevel()
  189.               updateStage()
  190.             else
  191.               if answer = 2 then
  192.                 set the memberNum of sprite 66 to member("TryAgain")
  193.                 updateStage()
  194.               else
  195.                 if answer = 3 then
  196.                   set the memberNum of sprite 67 to member("TryAgain")
  197.                   updateStage()
  198.                 else
  199.                   if answer = 4 then
  200.                     set the memberNum of sprite 68 to member("TryAgain")
  201.                     updateStage()
  202.                   end if
  203.                 end if
  204.               end if
  205.             end if
  206.           else
  207.             if level = 3 then
  208.               if answer = 1 then
  209.                 set the memberNum of sprite 65 to member("correct")
  210.                 changelevel()
  211.                 updateStage()
  212.               else
  213.                 if answer = 2 then
  214.                   set the memberNum of sprite 66 to member("TryAgain")
  215.                   updateStage()
  216.                 else
  217.                   if answer = 3 then
  218.                     set the memberNum of sprite 67 to member("TryAgain")
  219.                     updateStage()
  220.                   else
  221.                     if answer = 4 then
  222.                       set the memberNum of sprite 68 to member("TryAgain")
  223.                       updateStage()
  224.                     end if
  225.                   end if
  226.                 end if
  227.               end if
  228.             else
  229.               if level = 4 then
  230.                 if answer = 1 then
  231.                   set the memberNum of sprite 65 to member("correct")
  232.                   changelevel()
  233.                   updateStage()
  234.                 else
  235.                   if answer = 2 then
  236.                     set the memberNum of sprite 66 to member("TryAgain")
  237.                     updateStage()
  238.                   else
  239.                     if answer = 3 then
  240.                       set the memberNum of sprite 67 to member("TryAgain")
  241.                       updateStage()
  242.                     else
  243.                       if answer = 4 then
  244.                         set the memberNum of sprite 68 to member("TryAgain")
  245.                         updateStage()
  246.                       end if
  247.                     end if
  248.                   end if
  249.                 end if
  250.               end if
  251.             end if
  252.           end if
  253.         end if
  254.       else
  255.         if img = 4 then
  256.           if level = 1 then
  257.             if answer = 1 then
  258.               set the memberNum of sprite 65 to member("correct")
  259.               changelevel()
  260.               updateStage()
  261.             else
  262.               if answer = 2 then
  263.                 set the memberNum of sprite 66 to member("TryAgain")
  264.                 updateStage()
  265.               else
  266.                 if answer = 3 then
  267.                   set the memberNum of sprite 67 to member("TryAgain")
  268.                   updateStage()
  269.                 else
  270.                   if answer = 4 then
  271.                     set the memberNum of sprite 68 to member("TryAgain")
  272.                     updateStage()
  273.                   end if
  274.                 end if
  275.               end if
  276.             end if
  277.           else
  278.             if level = 2 then
  279.               if answer = 1 then
  280.                 set the memberNum of sprite 65 to member("correct")
  281.                 changelevel()
  282.                 updateStage()
  283.               else
  284.                 if answer = 2 then
  285.                   set the memberNum of sprite 66 to member("TryAgain")
  286.                   updateStage()
  287.                 else
  288.                   if answer = 3 then
  289.                     set the memberNum of sprite 67 to member("TryAgain")
  290.                     updateStage()
  291.                   else
  292.                     if answer = 4 then
  293.                       set the memberNum of sprite 68 to member("TryAgain")
  294.                       updateStage()
  295.                     end if
  296.                   end if
  297.                 end if
  298.               end if
  299.             else
  300.               if level = 3 then
  301.                 if answer = 1 then
  302.                   set the memberNum of sprite 65 to member("correct")
  303.                   changelevel()
  304.                   updateStage()
  305.                 else
  306.                   if answer = 2 then
  307.                     set the memberNum of sprite 66 to member("TryAgain")
  308.                     updateStage()
  309.                   else
  310.                     if answer = 3 then
  311.                       set the memberNum of sprite 67 to member("TryAgain")
  312.                       updateStage()
  313.                     else
  314.                       if answer = 4 then
  315.                         set the memberNum of sprite 68 to member("TryAgain")
  316.                         updateStage()
  317.                       end if
  318.                     end if
  319.                   end if
  320.                 end if
  321.               else
  322.                 if level = 4 then
  323.                   if answer = 1 then
  324.                     set the memberNum of sprite 65 to member("correct")
  325.                     changelevel()
  326.                     updateStage()
  327.                   else
  328.                     if answer = 2 then
  329.                       set the memberNum of sprite 66 to member("TryAgain")
  330.                       updateStage()
  331.                     else
  332.                       if answer = 3 then
  333.                         set the memberNum of sprite 67 to member("TryAgain")
  334.                         updateStage()
  335.                       else
  336.                         if answer = 4 then
  337.                           set the memberNum of sprite 68 to member("TryAgain")
  338.                           updateStage()
  339.                         end if
  340.                       end if
  341.                     end if
  342.                   end if
  343.                 end if
  344.               end if
  345.             end if
  346.           end if
  347.         end if
  348.       end if
  349.     end if
  350.   end if
  351. end
  352.  
  353. on changelevel
  354.   global level, img
  355.   if level <> 4 then
  356.     level = level + 1
  357.     set the memberNum of sprite 62 to member("Image" & img & "-" & level)
  358.   else
  359.     if img <> 4 then
  360.       level = 1
  361.       img = img + 1
  362.       set the memberNum of sprite 42 to member("Create" & img)
  363.       set the memberNum of sprite 62 to member("Image" & img & "-" & level)
  364.     else
  365.       nothing()
  366.     end if
  367.   end if
  368.   put level
  369. end
  370.